<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<script language="javascript"><!--
function grabID(e){ //modified from script at: http://www.quirksmode.org/js/events_properties.html#target
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
theId=targ.id
alert(theId) //this line may be removed or commented out
}
//--></script>
<div id="content">    
      <?php // Latest news feature
            echo $newsfeed;
       ?>

	   <?php // New arrivals ?>
	 <?php if (isset($products) && sizeof($products) > 0) { ?>
		 <div class="gallery">
		 <?php foreach($products as $product) { ?>		 
			<div class="home-newproduct">
				 <div align="center" class="home-newproduct-item">
					<?php // Product image and link?>
					<a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>">
						<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" name="product"/>
					</a>
					<br />
					
					<?php // Product Name & Link ?>
					<a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><?php echo $product['name']; ?></a>
					<br /> 
					
					<?php // Product name - model ?>
					<span style="color: #000000; font-size: 11px;"><?php echo $product['name']." - ".$product['model']; ?></span>
					<br />
		  
					<?php //Product  Price ?>
					<?php if ($display_price) { ?>
						<?php if (!$product['special']) { ?>
						<span style="color: #000000; font-weight: bold;"><?php echo $product['price']; ?></span><br />
						<?php } else { ?>
						<span class="promotion_linethrough" style="color: #000000; font-weight: bold;"><?php echo $product['price']; ?></span> <span style="color: #019a34;font-weight:bold;"><?php echo $product['special']; ?></span>
						<?php } ?>
					<?php } // End if display_price ?>
					<?php //End of Product Price ?>		  
				 </div>
			</div>
		 <?php } // End for ?>
		<span id="newarrivals"></span>
		</div>
	 <?php } // End if ?>
     <?php // End new arrivals ?> 
	  
	  <?php // Promo products ?>
	  <?php if (isset($promo_products) && sizeof($promo_products) > 0) { ?>
		<div class="gallery">
		<span id="promo"></span>
		 <?php foreach($promo_products as $product) { ?>		 
			<div class="home-promoproduct">
				 <div align="center" class="home-promoproduct-item">
					<?php // Product image and link?>
					<a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>">
						<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" name="product"/>
					</a>
					<br />
					
					<?php // Product Name & Link ?>
					<a href="<?php echo str_replace('&', '&amp;', $product['href']); ?>"><?php echo $product['name']; ?></a>
					<br /> 
					
					<?php // Product name - model ?>
					<span style="color: #000000; font-size: 11px;"><?php echo $product['name']." - ".$product['model']; ?></span>
					<br />
		  
					<?php //Product  Price ?>
					<?php if ($display_price) { ?>
						<?php if (!$product['special']) { ?>
						<span style="color: #000000; font-weight: bold;"><?php echo $product['price']; ?></span><br />
						<?php } else { ?>
						<span class="promotion_linethrough" style="color: #000000; font-weight: bold;"><?php echo $product['price']; ?></span> <span style="color: #019a34;font-weight:bold;"><?php echo $product['special']; ?></span>
						<?php } ?>
					<?php } // End if display_price ?>
					<?php //End of Product Price ?>		  
				 </div>
			</div>
		 <?php } // End for ?>		
		</div>
	  <?php } // End if ?>
	  <?php // End promo products ?>
</div>
 <?php echo $footer; ?>